package com.myslef.teaching_platfrom.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.myslef.teaching_platfrom.domain.talk.Talk;
import com.myslef.teaching_platfrom.mapper.TalkMapper;
import com.myslef.teaching_platfrom.service.TalkService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TalkServiceImpl extends ServiceImpl<TalkMapper, Talk> implements TalkService {
    @Override
    public List<Talk> getCommentsWithUsers(String id) {
        return baseMapper.listCommentWithUserName(id);
    }
    public String getListPicUrl(Integer id){
        return baseMapper.getListPicUrl(id);
    }
    public List<Talk> getSearchList(String text, String classId){
        return baseMapper.getSearchList(text, classId);
    }

}
